
<div  class="row">
	<div  class="col-md-8">
		<portlet title="我关注公众号的阅读">
{{if $user_cates}}
		<ul class="nav nav-tabs">
				<li {{if empty($_GET['cate_id'])}} class="active"{{/if}}>
			<a href="/wxes/{{($Wx['Wx']['slug']?$Wx['Wx']['slug']:$Wx['Wx']['id'])}}">全部</a></li>
				{{loop $user_cates $cate}}
					<li {{if $_GET['cate_id']==$cate['UserCate']['id']}} class="active"{{/if}}>
			<a href="/wxes/{{($Wx['Wx']['slug']?$Wx['Wx']['slug']:$Wx['Wx']['id'])}}?cate_id={{$cate['UserCate']['id']}}">{{$cate['UserCate']['name']}}</a></li>
				{{/loop}}
		</ul>
{{/if}}
<?php $category_control_name = 'articles';?>
{{loop $datalist  $item_all}}
	<?php $item = $item_all['Article']; ?>
	{{template categories/_list}}
{{/loop}}
<div>

{{$page_navi}}

</div>
		</portlet>
	</div>
	
	<div  class="col-md-4">
		

		<div class="ui-portlet panel panel-default">
			<div class="panel-heading ui-portlet-header" style="padding:0 10px;line-height:42px;">
			      <i class="fa fa-list-alt"></i>&nbsp;<span class="title" title="“{{$Wx['Wx']['name']}}”热门文章">热门文章</span> 
			    <ul class="nav nav-tabs pull-right">
					  <li class="active"><a href="#wx_article_hot" data-toggle="tab">总</a></li>
					  <li><a href="#wx_article_hot_day" data-toggle="tab">日</a></li>
					  <li><a href="#wx_article_hot_month" data-toggle="tab">月</a></li>
					  <li><a href="#wx_article_hot_week" data-toggle="tab">周</a></li>
				</ul>         
			</div>
			<div class="ui-corner-bottom ui-portlet-content panel-body">
				<!-- Tab panes -->
				<div class="tab-content">
				  <div class="tab-pane active" id="wx_article_hot">
				  		<portlet portlet="onlycontent" model="Article" recursive="-1" cached="300" redis_zlist_key="WxArticleHot_$current_data_id" showpages="0" info="fields[]=Article.id,Article.name,Article.created,Article.wx_id,Article.slug,Article.view_nums" 
				portlet="default" list_tpl="scripts" limit="10" order="view_nums desc" ulclass="portlet-title-list">
						</portlet>
				  </div>
				  <div class="tab-pane" id="wx_article_hot_day">
				  		<portlet portlet="onlycontent" model="Article" recursive="-1" cached="300" redis_zlist_key="WxArticleHotDay_$current_data_id" showpages="0" info="fields[]=Article.id,Article.name,Article.created,Article.wx_id,Article.slug,Article.view_nums" 
				portlet="default" list_tpl="scripts" limit="10" ulclass="portlet-title-list">
						</portlet>
				  </div>
				  <div class="tab-pane" id="wx_article_hot_month">
				  		<portlet portlet="onlycontent" model="Article" recursive="-1" cached="300" redis_zlist_key="WxArticleHotMonth_$current_data_id" showpages="0" info="fields[]=Article.id,Article.name,Article.created,Article.wx_id,Article.slug,Article.view_nums" 
				portlet="default" list_tpl="scripts" limit="10" ulclass="portlet-title-list">
						</portlet>
				  </div>
				  <div class="tab-pane" id="wx_article_hot_week">
				  		<portlet portlet="onlycontent" model="Article" recursive="-1" cached="300" redis_zlist_key="WxArticleHotWeek_$current_data_id" showpages="0" info="fields[]=Article.id,Article.name,Article.created,Article.wx_id,Article.slug,Article.view_nums" 
				portlet="default" list_tpl="scripts" limit="10" ulclass="portlet-title-list">
						</portlet>
				  </div>
				</div>
			</div>
		</div>


		<portlet model="Wx" cached="300" showpages="0" title="最新收录" 		
info="fields[]=Wx.id&fields[]=Wx.name&fields[]=Wx.created" 
		portlet="default" list_tpl="scripts" limit="8" order="id desc" ulclass="portlet-title-list">
		</portlet>
		
	</div>
</div>
